package com.packet.pojo;

import java.util.ArrayList;
import java.util.List;

public class ProjectComplexityStrategy implements ProjectSelectionStrategy {
    @Override
    public List<Project> recommendProjects(User user) {
        List<Project> projects = new ArrayList<>();
        // 根据项目复杂度选择项目
        if (user.getSkillLevel() >= 2) {
            projects.add(new Project("博客平台项目", "项目细节", 4));
        } else {
            projects.add(new Project("天天向上", "项目细节", 1));
        }
        return projects;
    }
}